
import { Injectable, Injector } from '@angular/core';
import { NgRepository } from '@farris/devkit';
import { BefRepository, NgVariable } from '@farris/bef';
import { HyxxEntity } from './entities/hyxxentity';

import { HyxxProxy } from './hyxxproxy';

@Injectable()
@NgRepository({
    apiUrl: 'api/membercenter/hyxx/v1.0/hyxxdj_frm',
    entityType: HyxxEntity
})
export class HyxxRepository extends BefRepository<HyxxEntity> {
    public name = 'HyxxRepository';

    public proxy: HyxxProxy;
    public paginationInfo = {
        HyxxEntity: {
            pageSize: 20,
        }
    };
    constructor(injector: Injector) {
        super(injector);
        this.proxy = injector.get(HyxxProxy, null);
    }
}